/* Layout */
import Layout from "@/views/layout";

/* 模块 */
import SingleStage from "./singlestage";
import MultStage from "./multistage";
import Dashboard from "./dashboard";
export const constantRoutes = [
  {
    path: "/redirect",
    component: Layout,
    hidden: true,
    children: [
      {
        path: "/redirect/:path(.*)",
        component: () => import("@/views/redirect/index"),
      },
    ],
  },
  {
    path: "/",
    name: "default",
    redirect: "/login",
  },
  {
    name: "login",
    path: "/login",
    component: (resolve) => require(["@/views/login/Login"], resolve),
    hidden: true,
    meta: {
      title: "登录",
    },
  },
  {
    name: "register",
    path: "/register",
    component: (resolve) => require(["@/views/register/Register"], resolve),
    hidden: true,
    meta: {
      title: "注册",
    },
  },
  {
    name: "首页",
    path: "/index",
    component: () => import("@/views/layout"),
    meta: {
      title: "首页",
      icon: "el-icon-menu",
      affix: true,
      requiresAuth: false,
    },
    children: [
      {
        name: "adminpin",
        path: "/adminpin",
        component: (r) =>
          require.ensure([], () => r(require("@/views/adminfin")), "adminfin"),
        children: [],
        meta: {
          id: "10004",
          icon: "el-icon-notebook-2",
          title: "管理员鉴定记录",
        },
      },
    ],
  },
  {
    path: "/adduser/",
    component: (resolve) => require(["@/views/layout"], resolve),
    meta: {
      title: "添加账号",
      icon: "el-icon-menu",
      affix: true,
      requiresAuth: false,
    },
    children: [
      {
        name: "adduser",
        path: "",
        component: (r) =>
          require.ensure([], () => r(require("@/views/adduser")), "adduser"),
        children: [],
        meta: {
          id: "100010",
          title: "添加专家账号",
          icon: "el-icon-notebook-1",
        },
      },
    ],
  },
];
export default constantRoutes;
